package io.renren.modules.app.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 重置密码
 * 
 * @author
 * @email
 * @date 2021-01-12 16:56:22
 */
@Data
@ApiModel(value = "ForgetResetPasswordReq对象", description = "重置密码请求")
public class ForgetResetPasswordReq implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "手机号")
	@NotBlank(message="手机号不能为空")
	@Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[0-9]))\\d{8})$", message = "手机号格式错误")
	private String mobile;

	@ApiModelProperty(value = "密码")
	@NotBlank(message="密码不能为空")
	private String password;

	/**
	 * 重复密码
	 */
	@NotBlank(message = "重复密码不可为空")
	@ApiModelProperty("重复密码")
	private String repeatPassword;

	@ApiModelProperty(value = "验证码")
	@NotBlank(message="验证码不能为空")
	private String code;
}
